package com.lightsaber.trade.as.ws.api.device;

import javax.jws.WebService;
import javax.ws.rs.Consumes;
import javax.ws.rs.GET;
import javax.ws.rs.POST;
import javax.ws.rs.Path;
import javax.ws.rs.Produces;
import javax.ws.rs.QueryParam;
import javax.ws.rs.core.MediaType;

@WebService
@Path("/viewCommand")
public interface ViewCommand {

    @GET
    @Path("/hello")
    @Produces(MediaType.APPLICATION_XML)
    @Consumes(MediaType.APPLICATION_XML)
    public String hello(@QueryParam("status") String status);

    @POST
    @Path("/collectInfo")
    @Produces(MediaType.APPLICATION_XML)
    @Consumes(MediaType.APPLICATION_XML)
    public String collectInfo(@QueryParam("deviceSerialNumber") String deviceSerialNumber,
            @QueryParam("content") String content);

    @GET
    @Path("/searchCommand")
    @Produces(MediaType.APPLICATION_XML)
    @Consumes(MediaType.APPLICATION_XML)
    public InfoCollectForDeviceDto searchCommand(
            @QueryParam("deviceSerialNumber") String deviceSerialNumber);
}
